home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_demo_hint.cog < prev    next >
Text File  |  1999-11-15  |  5KB  |  248 lines

  1. # Jones 3D Cog Script
  2. #
  3. # demo_hint.cog
  4. #
  5. #
  6. # [GGJ & HB]
  7. #
  8. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  9. #
  10. # ========================================================================================
  11.  
  12. symbols
  13.  
  14. message        entered
  15. message        activated
  16. message        boarded
  17. message        removed
  18. message        user0
  19.  
  20. cog            bridge2cog
  21.  
  22. thing        player                local
  23.  
  24. thing        hint1
  25. thing        hint2
  26. thing        hint3
  27. thing        hint4
  28. thing        hint5
  29. thing        hint6
  30. thing        hint7
  31. thing        hint8
  32. thing        hint9
  33. thing        hint10
  34. thing        hint11
  35. thing        hint12
  36. thing        hint13
  37. thing        hint14
  38. thing        hint15
  39. thing        hint16
  40.  
  41. thing        th_boatButton        #hint 5
  42. thing        th_key                #hint 6
  43. thing        th_keyhole            #hint 7
  44. thing        th_jeep                #hint 8
  45. thing        th_plank            #hint 13
  46.  
  47. thing        th_H8GhostA
  48. thing        th_H8GhostB
  49.  
  50. sector        sec_beyondSwing        #hint 1
  51. sector        sec_waterHole        #hint 3
  52. sector        sec_boulderdodge    #hint 4
  53. sector        sec_volExit            #teleports hint 8
  54. sector        sec_firstTunnel        #hint 9
  55. sector        sec_beyondJump1        #hint 10
  56. sector        sec_leftSlope        #hint 11
  57. sector        sec_beyondJump2        #hint 12
  58. sector        sec_beyondJump3        #hint 15
  59. sector        sec_exit            #hint 16
  60.  
  61. surface        surf_waterClimbout    #hint 2
  62. surface        surf_plankSpot        #hint 14
  63.  
  64. flex        solvetohere            local
  65.  
  66. int            solved_01=0            local
  67. int            solved_02=0            local
  68. int            solved_03=0            local
  69. int            solved_04=0            local
  70. int            solved_05=0            local
  71. int            solved_06=0            local
  72. int            solved_07=0            local
  73. int            solved_08=0            local
  74. int            solved_09=0            local
  75. int            solved_10=0            local
  76. int            solved_11=0            local
  77. int            solved_12=0            local
  78. int            solved_13=0            local
  79. int            solved_14=0            local
  80. int            solved_15=0            local
  81. int            solved_16=0            local
  82. int            i                    local
  83. int            n                    local
  84.  
  85. end
  86.  
  87. # ========================================================================================
  88.  
  89. code
  90.  
  91. entered:
  92.  
  93.     player = GetLocalPlayerThing();
  94.  
  95.     if ((GetSenderRef() == sec_volExit) && (GetSourceRef() == player))
  96.     {
  97.         TeleportThing(hint8, th_H8GhostB);
  98.     }
  99.  
  100.     if ((GetSenderRef() == sec_beyondSwing) && (GetSourceRef() == player) && (solved_01 == 0))
  101.     {
  102.         SetHintSolved(hint1);
  103.         solved_01 = 1;
  104.         TeleportThing(hint8, th_H8GhostA);
  105.         return;
  106.     }
  107.  
  108.     if ((GetSenderRef() == surf_waterClimbout) && (GetSourceRef() == player) && (solved_02 == 0))
  109.     {
  110.         solved_02 = 1;
  111.         n = 2;
  112.         goto solvetohere;
  113.     }
  114.     if ((GetSenderRef() == sec_waterHole) && (GetSourceRef() == player) && (solved_03 == 0))
  115.     {
  116.         solved_03 = 1;
  117.         n = 3;
  118.         goto solvetohere;
  119.     }
  120.     if ((GetSenderRef() == sec_boulderdodge) && (GetSourceRef() == player) && (solved_04 == 0))
  121.     {
  122.         solved_04 = 1;
  123.         n = 4;
  124.         goto solvetohere;
  125.     }
  126.     if ((GetSenderRef() == sec_firstTunnel) && (GetSourceRef() == player) && (solved_09 == 0))
  127.     {
  128.         solved_09 = 1;
  129.         n = 9;
  130.         goto solvetohere;
  131.     }
  132.     if ((GetSenderRef() == sec_beyondJump1) && (GetSourceRef() == player) && (solved_10 == 0))
  133.     {
  134.         solved_10 = 1;
  135.         n = 10;
  136.         goto solvetohere;
  137.     }
  138.     if ((GetSenderRef() == sec_leftSlope) && (GetSourceRef() == player) && (solved_11 == 0))
  139.     {
  140.         solved_11 = 1;
  141.         n = 11;
  142.         goto solvetohere;
  143.     }
  144.     if ((GetSenderRef() == sec_beyondJump2) && (GetSourceRef() == player) && (solved_12 == 0))
  145.     {
  146.         solved_12 = 1;
  147.         n = 12;
  148.         goto solvetohere;
  149.     }
  150.     if ((GetSenderRef() == sec_beyondJump3) && (GetSourceRef() == player) && (solved_15 == 0))
  151.     {
  152.         solved_15 = 1;
  153.         n = 15;
  154.         goto solvetohere;
  155.     }
  156.     if ((GetSenderRef() == sec_exit) && (GetSourceRef() == player) && (solved_16 == 0))
  157.     {
  158.         solved_16 = 1;
  159.         n = 16;
  160.         goto solvetohere;
  161.     }
  162.  
  163.     return;
  164.  
  165. # ========================================================================================
  166.  
  167. activated:
  168.  
  169.     player = GetLocalPlayerThing();
  170.  
  171.     if ((GetSenderRef() == th_boatButton) && (GetSourceRef() == player) && (solved_05 == 0))
  172.     {
  173.         solved_05 = 1;
  174.         n = 5;
  175.         goto solvetohere;
  176.     }
  177.     if ((GetSenderRef() == th_key) && (GetSourceRef() == player) && (solved_06 == 0))
  178.     {
  179.         solved_06 = 1;
  180.         n = 6;
  181.         goto solvetohere;
  182.     }
  183.     if ((GetSenderRef() == th_keyhole) && (GetCurItem(player) == 116) && (GetSourceRef() == player) && (solved_07 == 0))
  184.     {
  185.         solved_07 = 1;
  186.         n = 7;
  187.         goto solvetohere;
  188.     }
  189.  
  190.     return;
  191.  
  192. # ========================================================================================
  193.  
  194. boarded:
  195.  
  196.     if ((GetSenderRef() == th_jeep) && (solved_08 == 0))
  197.     {
  198.         solved_08 = 1;
  199.         n = 8;
  200.         goto solvetohere;
  201.     }
  202.  
  203.     return;
  204.  
  205. # ========================================================================================
  206.  
  207. removed:
  208.  
  209.     if ((GetSenderRef() == th_plank) && (solved_13 == 0))
  210.     {
  211.         solved_13 = 1;
  212.         n = 13;
  213.         goto solvetohere;
  214.     }
  215.  
  216.     return;
  217.  
  218. # ========================================================================================
  219.  
  220. user0:
  221.  
  222. if (GetSenderRef() != bridge2cog) return;
  223.  
  224.     if (solved_14 == 0)
  225.     {
  226.         solved_14 = 1;
  227.         n = 14;
  228.         goto solvetohere;
  229.     }
  230.  
  231.     return;
  232.  
  233. # ========================================================================================
  234.  
  235. solvetohere:
  236.  
  237.     for (i=0; i<n; i=i+1)
  238.     {
  239.         SetHintSolved(hint1[i]);
  240.     }
  241.  
  242.     return;
  243.  
  244. end
  245.  
  246.  
  247.  
  248.